package com.xuyiwei.xblog.service.impl;

import com.xuyiwei.xblog.entity.SysMenu;
import com.xuyiwei.xblog.mapper.SysMenuMapper;
import com.xuyiwei.xblog.service.ISysMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜单权限表 服务实现类
 * </p>
 *
 * @author xuyiwei
 * @since 2019-07-30
 */
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements ISysMenuService {

    @Override
    public List<String> findPermsByUserId(Integer userId) {
        return baseMapper.findPermsByUserId(userId);
    }
}
